package com.ctcemti.mdm.project.sys.dao;

import com.ctcemti.mdm.project.sys.entity.OrgStation;
import com.ctcemti.mdm.project.sys.entity.OrgStation;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.IdsMapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrgStationMapper extends tk.mybatis.mapper.common.Mapper<OrgStation>,IdsMapper<OrgStation> {

    int updateByPidSelective(OrgStation record);

    int insertBatch(List<OrgStation> list);

    List<Map<String,Object>> selectAllListByProjectId(OrgStation orgStation);

    int deleteByPrimaryKeys(List<String> list);

    int moveOrgStation(Map<String, Object> param);

    List<Map<String,Object>> selectOrgstationByName(Map<String,Object> map);

    List<String> selectOrgByProjectId(Map<String,Object> map);

    List<String> selectOrgDownByProjectId(Map<String,Object> map);
    /* *
     * @Author bxf
     * @Description 根据名称获取当前对象
     * @Date 9:41 2019/9/5
     * @param map
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     */
    List<Map<String,Object>> selectAllOrgstationByName(Map<String,Object> map);

    List<Map<String,Object>> selectOrgstationByIds(Map<String,Object> map);

    List<Map<String,Object>> optimizeSelectPrevStationByName(Map<String,Object> map);

    List<Map<String,Object>> optimizeSelectNextStationById(Map<String,Object> map);

    List<Map<String,Object>> selectMapByEntity(OrgStation orgStation);
}